package com.asom.player;

import android.os.Bundle;

import com.asom.player.CustomActivity.GoHomeAction;
import com.markupartist.android.widget.ActionBar.Action;
import com.markupartist.android.widget.ActionBar.IntentAction;
import com.markupartist.android.widget.actionbar.R;

public class PlayerActivity extends CustomActivity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.player_layout);

		Bundle bundle = this.getIntent().getExtras();
		
		initializeActionBar();
		
	}
	
	private void initializeActionBar() {

		final Action shareAction = new IntentAction(this, null,
				R.drawable.ic_title_share_default);

		if (actionBar != null) {
			actionBar.setHomeAction(new GoHomeAction());
			actionBar.setDisplayHomeAsUpEnabled(true);
			actionBar.addAction(shareAction);
		}
	}
}
